package cn.chainco.cts.jdo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

// 柜号表
@Entity
@Table(name = "cts_containerno")
public class ContainerNo implements Serializable {
	private static final long serialVersionUID = -5120851263353269498L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private long id;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "workId")
	private Work work; // 工作单id

	@Column(length = 20)
	private String cntrNo;// 柜号

	@Column(length = 100)
	private String typeAndSize;// 箱型与尺寸

	@Column(length = 20)
	private String sealNo;// 封号

	@Column
	private String count;// 件数

	@Column
	private Float grossWeight;// 毛重

	@Column(length = 50)
	private String volume;// 体积

	@Column
	private String temperature;// 温度

	@Column
	private String description; // 描述

	@Column
	private String humidity;// 湿度

	@Column
	private Integer hasAirintake;// 是否有通风口0没有 1 有

	@Column
	private Integer hasDynamo;// 是否有发电机0没1有

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getCntrNo() {
		return cntrNo;
	}

	public void setCntrNo(String cntrNo) {
		this.cntrNo = cntrNo;
	}

	public String getTypeAndSize() {
		return typeAndSize;
	}

	public void setTypeAndSize(String typeAndSize) {
		this.typeAndSize = typeAndSize;
	}

	public String getSealNo() {
		return sealNo;
	}

	public void setSealNo(String sealNo) {
		this.sealNo = sealNo;
	}

	public String getCount() {
		return count;
	}

	public void setCount(String count) {
		this.count = count;
	}

	public Float getGrossWeight() {
		return grossWeight;
	}

	public void setGrossWeight(Float grossWeight) {
		this.grossWeight = grossWeight;
	}

	public String getVolume() {
		return volume;
	}

	public void setVolume(String volume) {
		this.volume = volume;
	}

	public String getTemperature() {
		return temperature;
	}

	public void setTemperature(String temperature) {
		this.temperature = temperature;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getHumidity() {
		return humidity;
	}

	public void setHumidity(String humidity) {
		this.humidity = humidity;
	}

	public Integer getHasAirintake() {
		return hasAirintake;
	}

	public void setHasAirintake(Integer hasAirintake) {
		this.hasAirintake = hasAirintake;
	}

	public Integer getHasDynamo() {
		return hasDynamo;
	}

	public void setHasDynamo(Integer hasDynamo) {
		this.hasDynamo = hasDynamo;
	}

	public Work getWork() {
		return work;
	}

	public void setWork(Work work) {
		this.work = work;
	}

}
